Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@highlight-ui/tooltip

Package Overview
Dependencies
Maintainers
10
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/tooltip

Tooltip component for Highlight UI library

  • 3.3.47
  • npm
  • Socket score

Version published
Weekly downloads
3.2K
increased by58.33%
Maintainers
10
Weekly downloads
 
Created
Source

npm personio.design storybook.personio.design

@highlight-ui/tooltip

Using npm:

npm install @highlight-ui/tooltip

Using yarn:

yarn add @highlight-ui/tooltip

Using pnpm:

pnpm install @highlight-ui/tooltip

In your (S)CSS file:

@import url('@highlight-ui/tooltip');

Once the package is installed, you can import the library:

import { Tooltip } from '@highlight-ui/tooltip';

Usage

import React from 'react';
import { Tooltip } from '@highlight-ui/tooltip';

export default function TooltipExample() {
  return (
    <Tooltip
      content={<span>This is the tooltip text.</span>}
      placement="top"
      interactive
    >
      <b>Hover me</b>
    </Tooltip>
  );
}

Props 📜

PropTypeRequiredDefaultDescription
contentReact.ReactNodeYesContent rendered inside the tooltip pop-up
childrenReact.ReactNodeYesThe element which triggers the tooltip pop-up
idstringNoid of the tooltip
component'span', 'div'NospanCreate custom trigger element
mouseEnterDelayMouseDelayVariantNononeMouse enter delay specifying how long a tooltip takes before becoming visible
mouseOutDelayMouseDelayVariantNononeMouse out delay specifying how long a tooltip stays visible after hovering out
placement'top', 'left', 'bottom', 'right'NotopPlacement of the tooltip
interactivebooleanNotrueWhether tooltip text stays visible when user moves the pointer over its content (requires long mouseOutDelay)
classNamestringNoAllows providing a custom class name

Custom types 🔠

TypeValuesDescription
MouseDelayVariant'none', 'medium', 'long'Used by the mouseEnterDelay and mouseOutDelay props. none = 0, medium = 375, long = 1000

Contributing 🖌️

Please visit personio.design for usage guidelines and visual examples.

If you're interested in contributing, please visit our contribution page.

FAQs

Package last updated on 10 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc